<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  {{include './header.html'}}
  <h1>art-template 标准语法</h1>
  {{list.num}}
  {{@ list.title }}
  <h2>条件</h2>
  <br/>
  {{if list.num > 0}} 
    <span>num 大于0</span>
  {{else if list.num < 0}} 
    <span>num 小于0</span>
  {{/if}}

  <h2>循环数据</h2>
  <ul>
    {{each list.arr}}
      <li>{{$index}} -- {{$value}}</li>
    {{/each}}
  </ul>
</body>
</html>